home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gxclzlib.c < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.8 KB  |  54 lines

  1. /* Copyright (C) 1997 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gxclzlib.c,v 1.2 2000/09/19 19:00:35 lpd Exp $ */
  20. /* zlib filter initialization for RAM-based band lists */
  21. /* Must be compiled with -I$(ZSRCDIR) */
  22. #include "std.h"
  23. #include "gstypes.h"
  24. #include "gsmemory.h"
  25. #include "gxclmem.h"
  26. #include "szlibx.h"
  27.  
  28. private stream_zlib_state cl_zlibE_state;
  29. private stream_zlib_state cl_zlibD_state;
  30.  
  31. /* Initialize the states to be copied. */
  32. void
  33. gs_cl_zlib_init(gs_memory_t * mem)
  34. {
  35.     s_zlib_set_defaults((stream_state *) & cl_zlibE_state);
  36.     cl_zlibE_state.no_wrapper = true;
  37.     cl_zlibE_state.template = &s_zlibE_template;
  38.     s_zlib_set_defaults((stream_state *) & cl_zlibD_state);
  39.     cl_zlibD_state.no_wrapper = true;
  40.     cl_zlibD_state.template = &s_zlibD_template;
  41. }
  42.  
  43. /* Return the prototypes for compressing/decompressing the band list. */
  44. const stream_state *
  45. clist_compressor_state(void *client_data)
  46. {
  47.     return (const stream_state *)&cl_zlibE_state;
  48. }
  49. const stream_state *
  50. clist_decompressor_state(void *client_data)
  51. {
  52.     return (const stream_state *)&cl_zlibD_state;
  53. }
  54.